home *** CD-ROM | disk | FTP | other *** search
/ Immoral Angel 1 / Immoral Angel 1.iso / mac / MSTR / PROGRAM / ACTRESS.DIR / 00181.ls < prev    next >
Encoding:
Text File  |  1997-07-10  |  3.6 KB  |  148 lines

  1. on startMovie
  2.   global poponoff, packagenum, whichview, status, startTime, qtstatus, photonum, photonummax, selectedvideonum, fileName, cursorwait
  3.   cursor(cursorwait)
  4.   set poponoff to 0
  5.   set whichview to "info"
  6.   set status to EMPTY
  7.   set startTime to ticks()
  8.   set photonum to 1
  9.   set photonummax to 28
  10.   set selectedvideonum to 0
  11.   set qtstatus to "QToff"
  12.   set fileName to "ACTRESS"
  13.   when mouseUp then putMask
  14. end
  15.  
  16. on button
  17.   global status, bgmonoff
  18.   if status <> EMPTY then
  19.     beepsound()
  20.     return 0
  21.   end if
  22.   set buttonname to item 1 of the name of cast the castNum of sprite clickOn()
  23.   repeat while stillDown()
  24.     if rollOver(clickOn()) then
  25.       set the castNum of sprite clickOn() to the number of member (buttonname & ",down")
  26.     else
  27.       set the castNum of sprite clickOn() to the number of member (buttonname & ",up")
  28.     end if
  29.     updateStage()
  30.   end repeat
  31.   set the castNum of sprite clickOn() to the number of member (buttonname & ",up")
  32.   updateStage()
  33.   if rollOver(clickOn()) then
  34.     puppetSound(bgmonoff)
  35.     updateStage()
  36.     return 1
  37.   else
  38.     return 0
  39.   end if
  40. end
  41.  
  42. on button2
  43.   global bgmonoff
  44.   set buttonname to item 1 of the name of cast the castNum of sprite clickOn()
  45.   repeat while stillDown()
  46.     if rollOver(clickOn()) then
  47.       set the castNum of sprite clickOn() to the number of member (buttonname & ",down")
  48.     else
  49.       set the castNum of sprite clickOn() to the number of member (buttonname & ",up")
  50.     end if
  51.     updateStage()
  52.   end repeat
  53.   set the castNum of sprite clickOn() to the number of member (buttonname & ",up")
  54.   updateStage()
  55.   if rollOver(clickOn()) then
  56.     puppetSound(bgmonoff)
  57.     updateStage()
  58.     return 1
  59.   else
  60.     return 0
  61.   end if
  62. end
  63.  
  64. on npbutton
  65.   global status, bgmonoff
  66.   if status <> EMPTY then
  67.     beepsound()
  68.     return 0
  69.   end if
  70.   set spcenter to (the right of sprite clickOn() - the left of sprite clickOn()) / 2
  71.   set which to "0,0"
  72.   set x to 0
  73.   repeat while stillDown()
  74.     if rollOver(clickOn()) then
  75.       set mh to mouseH() - the left of sprite clickOn()
  76.       if mh < spcenter then
  77.         set the castNum of sprite clickOn() to the number of member "prevDown"
  78.         set x to -1
  79.       else
  80.         if mh > spcenter then
  81.           set the castNum of sprite clickOn() to the number of member "nextDown"
  82.           set x to 1
  83.         end if
  84.       end if
  85.     else
  86.       set the castNum of sprite clickOn() to the number of member "nextPrev,up"
  87.     end if
  88.     updateStage()
  89.   end repeat
  90.   set the castNum of sprite clickOn() to the number of member "nextPrev,up"
  91.   updateStage()
  92.   if rollOver(clickOn()) then
  93.     set which to "1," & x
  94.     puppetSound(bgmonoff)
  95.     updateStage()
  96.     return which
  97.   else
  98.     set which to "0," & x
  99.     return which
  100.   end if
  101. end
  102.  
  103. on beepsound
  104.   global bgmonoff, beepnum
  105.   puppetSound(string(beepnum))
  106.   updateStage()
  107. end
  108.  
  109. on putmask
  110.   global status
  111.   if status <> EMPTY then
  112.     exit
  113.   end if
  114.   puppetSprite(24, 1)
  115.   set the type of sprite 24 to 1
  116.   set the ink of sprite 24 to 37
  117.   set the foreColor of sprite 24 to 255
  118.   set the backColor of sprite 24 to 0
  119.   set the castNum of sprite 24 to the number of member "cntMask"
  120.   set the locH of sprite 24 to 288
  121.   set the locV of sprite 24 to 280
  122.   updateStage()
  123.   set the type of sprite 24 to 0
  124.   updateStage()
  125. end
  126.  
  127. on wait t
  128.   set waittime to ticks() + (t * 60)
  129.   repeat while ticks() < waittime
  130.     nothing()
  131.   end repeat
  132. end
  133.  
  134. on idle
  135.   global startTime, fileName
  136.   checktimeout()
  137.   if fileName = "MAIN" then
  138.     exit
  139.   end if
  140.   set runningtime to ticks() - startTime
  141.   if runningtime > (5 * 60 * 60) then
  142.     set startTime to ticks()
  143.     if random(5) = 2 then
  144.       bomb()
  145.     end if
  146.   end if
  147. end
  148.